package cn.zhentao.mapper;

import cn.zhentao.book.dto.Booklist;
import cn.zhentao.book.pojo.TBook;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author EWEWW
* @description 针对表【t_book】的数据库操作Mapper
* @createDate 2024-06-29 09:39:46
* @Entity cn.zhentao.pojo.TBook
*/
@Mapper
public interface TBookMapper extends BaseMapper<TBook> {
    //查询图书以及所有条件
    Page<TBook> listBook(@Param("page") Page<TBook> page,@Param("booklist") Booklist booklist);
    //查询单个图书
    TBook selctOne(@Param("id") Integer id);
}




